package com.chat.common.user.service;

import com.chat.common.user.domain.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chat.common.user.domain.enums.RoleEnum;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author <a href="https://www.linxin.cc">lin</a>
 * @since 2024-09-19
 */
public interface IRoleService{

    /**
     * 是否拥有某个权限
     * @param uid
     * @param ruleEnum
     * @return
     */
    boolean hasPower(Long uid, RoleEnum ruleEnum);

}
